//
//  NSString+NewStr.m
//  08-类的拓展
//
//  Created by dllo on 16/7/13.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "NSString+NewStr.h"

@implementation NSString (NewStr)
- (NSString *)getHeadCharacterWithString:(NSString *)string {
    NSString *newstring = [string substringWithRange:NSMakeRange(0, 1)];
    NSString *capStr = [newstring capitalizedString];
    return capStr;
}
- (NSString *)getFirstChar {
    NSString *firstStr = [self substringWithRange:NSMakeRange(0, 1)];
    firstStr = firstStr.uppercaseString;
    return firstStr;
}
@end
